<?php

class TixianModel extends Model {

    protected $_validate = array (
		array('name','require','姓名不能为空', 1),
		array('mobile','require','手机不能为空', 1),
		array('txType','require','请选择提现方式', 1),
		array('money','require','提现金额不能为空', 1),
    );	

    protected $_auto = array (

		array('createTime','time',Model::MODEL_INSERT,'function'),		
		array('updateTime','time',Model::MODEL_BOTH,'function'),
		array('memberID','_memberID',Model::MODEL_INSERT,'callback'),

	);

	protected function _memberID(){
		import("ORG.Crypt.Xxtea");
        $memberID = Xxtea::decrypt(cookie('memberID'),C('COOKIE_PREFIX'));
        return $memberID;
	}

}
?>